Compiler options for the Hitachi h8/300

Contents|Index|Previous|Next
Compiler options for the Hitachi H8/300, H8S and H8/300H

When you run GCC, you can use command-line options to choose machine-specific details. For information on all the GCC command-line options, see GNU CC command options in Using GNU CC in GNUPro Compiler Tools.

## General `gcc` options for Hitachi H8/300, H8S and H8/300H

-ms

Generate code for the H8S processor.

-mh

Generate code for the H8/300H chip.

-mint32

Use 32-bit integers when compiling for the H8/300H.

-g

The compiler debugging option, -g, is essential to see interspersed high-level source statements, since, without debugging information, the assembler cannot tie most of the generated code to lines of the original source file.

Floating point subroutines for Hitachi H8/300
The Hitachi H8/300 has no floating point support. Two kinds of floating point subroutines are useful with GCC:

- Software implementations of the basic functions (floating-point multiply, divide, add, subtract), for use when there is no hardware floating-point support.
- General-purpose mathematical subroutines.
GNUPro Toolkit includes an implementation of the standard C mathematical subroutine library. See Mathematical functions (math.h) in GNUPro Math Library in GNUPro Libraries.

Top|Contents|Index|Previous|Next